import requests

url = 'https://www.baidu.com'

# session维持
session = requests.session()
response = session.get(url)
resp = session.post(url)